/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package seGobangClient.mainMenu;
import seGobangClient.*;
import seGobangClient.gaming.LocalPlayer;
import seGobangResources.StringRes;

/**
 *
 * @author plus
 */
public class CommandChangeSceneToLocalGame implements ICommand{
    
    public Object execute(Object Param) {
        try{
           GlobalController.setCurrentSceneController(
                   new seGobangClient.gaming.GamingController(
                   GlobalController.getCurrentUISystem(),
                   new LocalPlayer(StringRes.getString("Player1"),(byte)-1,GlobalController.getCurrentRule()),
                   new LocalPlayer(StringRes.getString("Player2"),(byte)1,GlobalController.getCurrentRule())));
        }catch(Exception e){
            e.printStackTrace();
        }
       return null;
    }

    public Object undo() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
